package xcmg.device.service.vo.threeGuaranteesPur;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import xcmg.device.service.vo.basic.MaterialLocationRelationVO;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

public class ThreeGuaranteesPurDetailVO {
    private String id;

    private String threeGuaPurNo;

    private String technicalNo;

    private String machineNo;

    private String machineType;

    private String materialsNo;

    private String materialsDesc;

    private BigDecimal purchaseQty;

    private String unit;

    private BigDecimal deliveryQty;

    private Integer status;

    private Date deliveryDate;

    private String createId;

    private String createName;

    private Date createDate;

    private BigDecimal price;

    private BigDecimal totalPrice;

    private Integer errorRow;

    private String note;

    private BigDecimal realQty;

    private String remark;

    private BigDecimal intentionNum = BigDecimal.ZERO;

    private BigDecimal deliveryNum = BigDecimal.ZERO;

    //库存数量
    private BigDecimal amount;
    private BigDecimal enableNum = BigDecimal.ZERO;

    //零件储位信息
    private List<MaterialLocationRelationVO> stockLocationList;

    private String stockLocation;

    //购买量
    private Integer isMinimumBuy;
    private Integer minimumBuy;

    private BigDecimal costPrice;
    private BigDecimal costSubtotal;
    private String materialsDes;

    private String barcode;

    private Date outDate;

    /** 结算单价 **/
    private BigDecimal closePrice;

    public String getBarcode(){
        return barcode;
    }

    public void setBarcode(String barcode){
        this.barcode = barcode;
    }

    public Integer getIsMinimumBuy() {
        return isMinimumBuy;
    }

    public void setIsMinimumBuy(Integer isMinimumBuy) {
        this.isMinimumBuy = isMinimumBuy;
    }

    public Integer getMinimumBuy() {
        return minimumBuy;
    }

    public void setMinimumBuy(Integer minimumBuy) {
        this.minimumBuy = minimumBuy;
    }

    public String getStockLocation() {
        return stockLocation;
    }

    public void setStockLocation(String stockLocation) {
        this.stockLocation = stockLocation;
    }

    public List<MaterialLocationRelationVO> getStockLocationList() {
        return stockLocationList;
    }

    public void setStockLocationList(List<MaterialLocationRelationVO> stockLocationList) {
        this.stockLocationList = stockLocationList;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getThreeGuaPurNo() {
        return threeGuaPurNo;
    }

    public void setThreeGuaPurNo(String threeGuaPurNo) {
        this.threeGuaPurNo = threeGuaPurNo == null ? null : threeGuaPurNo.trim();
    }

    public String getTechnicalNo() {
        return technicalNo;
    }

    public void setTechnicalNo(String technicalNo) {
        this.technicalNo = technicalNo == null ? null : technicalNo.trim();
    }

    public String getMachineNo() {
        return machineNo;
    }

    public void setMachineNo(String machineNo) {
        this.machineNo = machineNo == null ? null : machineNo.trim();
    }

    public String getMachineType() {
        return machineType;
    }

    public void setMachineType(String machineType) {
        this.machineType = machineType == null ? null : machineType.trim();
    }

    public String getMaterialsNo() {
        return materialsNo;
    }

    public void setMaterialsNo(String materialsNo) {
        this.materialsNo = materialsNo == null ? null : materialsNo.trim();
    }

    public String getMaterialsDesc() {
        return materialsDesc;
    }

    public void setMaterialsDesc(String materialsDesc) {
        this.materialsDesc = materialsDesc == null ? null : materialsDesc.trim();
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit == null ? null : unit.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getDeliveryDate() {
        return deliveryDate;
    }

    public void setDeliveryDate(Date deliveryDate) {
        this.deliveryDate = deliveryDate;
    }

    public String getCreateId() {
        return createId;
    }

    public void setCreateId(String createId) {
        this.createId = createId == null ? null : createId.trim();
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName == null ? null : createName.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Integer getErrorRow() {
        return errorRow;
    }

    public void setErrorRow(Integer errorRow) {
        this.errorRow = errorRow;
    }

    public String getNote() {
        return note;
    }

    public void setNote(String note) {
        this.note = note;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
    }

    public BigDecimal getPurchaseQty() {
        return purchaseQty;
    }

    public void setPurchaseQty(BigDecimal purchaseQty) {
        this.purchaseQty = purchaseQty;
    }

    public BigDecimal getDeliveryQty() {
        return deliveryQty;
    }

    public void setDeliveryQty(BigDecimal deliveryQty) {
        this.deliveryQty = deliveryQty;
    }

    public BigDecimal getRealQty() {
        return realQty;
    }

    public void setRealQty(BigDecimal realQty) {
        this.realQty = realQty;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public BigDecimal getEnableNum() {
        return enableNum;
    }

    public void setEnableNum(BigDecimal enableNum) {
        this.enableNum = enableNum;
    }


    public BigDecimal getIntentionNum() {
        return intentionNum;
    }

    public void setIntentionNum(BigDecimal intentionNum) {
        this.intentionNum = intentionNum;
    }

    public BigDecimal getDeliveryNum() {
        return deliveryNum;
    }

    public void setDeliveryNum(BigDecimal deliveryNum) {
        this.deliveryNum = deliveryNum;
    }

    public BigDecimal getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(BigDecimal costPrice) {
        this.costPrice = costPrice;
    }

    public BigDecimal getCostSubtotal() {
        return costSubtotal;
    }

    public void setCostSubtotal(BigDecimal costSubtotal) {
        this.costSubtotal = costSubtotal;
    }

    public String getMaterialsDes() {
        return materialsDes;
    }

    public void setMaterialsDes(String materialsDes) {
        this.materialsDes = materialsDes;
    }

    public Date getOutDate() {
        return outDate;
    }

    public void setOutDate(Date outDate) {
        this.outDate = outDate;
    }

    public BigDecimal getClosePrice() {
        return closePrice;
    }

    public void setClosePrice(BigDecimal closePrice) {
        this.closePrice = closePrice;
    }
}
